module.exports = {
    devtool: 'source-map',
    entry: __dirname + '/app/main.js',
    output: {
        path: __dirname + '/public',
        filename: 'main.js'
    },
    module:{
        loaders:[
            {
                test: /\.js/,
                exclude: /node_modules/,
                loader: 'babel',
                query:{
                    presets: ['es2015'],
                    plugins: ['transform-runtime']
                }
            }
        ]
    },
    devServer:{
        contentBase: './public',
        port: 3000,
        colors: true,
        historyApiFallback: true,
        inline: true

    }

}